package com.huibo.shopping.domain;

import java.util.ArrayList;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@Data
@TableName("t_product_type")
public class ShopType {
	
	private static final long serialVersionUID = 1L;
	
	@TableId(value = "id", type = IdType.AUTO)
	public Long id;
	
	@TableField("createTime")
	public Long createTime;
	
	@TableField("updateTime")
	public Long updateTime;
	
	public String name;
	
	@TableField("pid")
	public Long pid;
	
	@TableField("logo")
	public String logo;
	
	public String description;
	
	@TableField("sortIndex")
	public Integer sortIndex;
	
	/**
	 * 路径
	 */
	public String path;
	
	/**
	 * 商品数量
	 */
	@TableField("totalCount")
	public Integer totalCount;
	
	/**
	 * 分类标题
	 */
	@TableField("seoTitle")
	public String seoTitle;
	
	/**
	 * 分类标题
	 */
	@TableField("seoKeywords")
	public String seoKeywords;
	
	/**
	 * 树形菜单名字
	 */
	@TableField(exist = false)
	public String label;
	
	/**
	 * 子集
	 */
	@TableField(exist = false)
	public ArrayList<ShopType> children = new ArrayList<ShopType>();
	
}
